package com.scs.application.modules.dept.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.FlowEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "消耗合单表")
@TableName("dept_use_merge")
public class UseMerge extends FlowEntity {

    @EntityFieldAnnotation(
            text = "单据类型",
            length = "10",
            not_null = false,
            default_value = "",
            comment = "保留字段"
    )
    private String busType;

    @EntityFieldAnnotation(
            text = "单据标识",
            length = "20",
            not_null = false,
            default_value = "",
            comment = "单据标识"
    )
    private String busKey;

    @EntityFieldAnnotation(
            text = "单据日期",
            length = "",
            not_null = false,
            default_value = "",
            comment = "单据日期"
    )
    private Date busDate;

    @EntityFieldAnnotation(
            text = "合并人",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String busUser;

    @EntityFieldAnnotation(
            text = "合并人",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String busUserCode;

    @EntityFieldAnnotation(
            text = "科室ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = "科室ID"
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "科室名称",
            length = "30",
            not_null = false,
            default_value = "",
            comment = " "
    )
    private String deptName;

    @EntityFieldAnnotation(
            text = "金额",
            length = "",
            not_null = false,
            default_value = "",
            comment = "金额"
    )
    private Double amount;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = "备注"
    )
    private String remark;


    @EntityFieldAnnotation(
            text = "合单类型",
            length = "50",
            not_null = false,
            default_value = "",
            comment = "1.病人消耗单2.科室消耗单"
    )
    private String mergeType;

    @EntityFieldAnnotation(
            text = "手术单号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtCode;

    @EntityFieldAnnotation(
            text = "手术名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtName;

    @EntityFieldAnnotation(
            text = "是否关联科室",
            length = "50",
            not_null = false,
            default_value = "",
            comment = "0.否1.是"
    )
    private Boolean flagLine;

    @EntityFieldAnnotation(
            text = "住院号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String inpatientNo;

    @EntityFieldAnnotation(
            text = "门诊号",
            length = "50",
            default_value = "",
            comment = "患者门诊唯一标识"
    )
    private String outpatientNo;

    @EntityFieldAnnotation(
            text = "患者名称",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientName;

    @EntityFieldAnnotation(
            text = "患者id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientId;

}
